var images = ["imgs/community/img1.jpg", "imgs/community/img2.jpg", "imgs/community/img3.jpg","imgs/community/img4.jpg","imgs/community/img5.jpg"]
var cnt = 0
var slider = document.getElementsByClassName("community-show")[0]
function changeImage() {
    slider.style.backgroundImage = "url('" + images[cnt] + "')"
    cnt = (++cnt) % images.length 
}
setInterval(changeImage, 2000)